package com.matt.domain.photoalbum;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "tb_photo")
@Data
@EqualsAndHashCode(callSuper = true)
public class Photo extends Domain {

	@Column(name = "aid", columnDefinition = " varchar(32)  COMMENT ' 园区id：园区姓名'")
	private String areaId;

	@Column(name = "albumId", columnDefinition = " varchar(32)  COMMENT ' 相册id'")
	private String albumId;

	@Column(columnDefinition = "varchar(512) COMMENT '图片地址'")
	private String resURL;

	@Column(columnDefinition = "int default 0   COMMENT '资源类型， 0. 其他    1.图片   2.视频'")
	private Integer resType;

	@Column(columnDefinition = "varchar(128) COMMENT '文章标题'")
	private String title;

	@Column(columnDefinition = "varchar(512) COMMENT '文章标题'")
	private String description;

	@Column(name = "staffId", columnDefinition = " varchar(32)  COMMENT '老师id'")
	private String staffId;
}
